home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
umich
/
graphics
/
tabplot.arc
/
TAB_PLOT.DOC
next >
Wrap
Text File
|
1988-05-01
|
3KB
|
61 lines
TAB_PLOT version 0.2 April 1988
written by Robert Best, Aragon 1, 3831ET Leusden, Nederland
TAB_PLOT converts a number table into a XY-plot. Run TAB_PLOT.PRG,
and select TABLE_1.DOC. A plot will appear after a few seconds,
and a menu-bar to edit, save, etc.
The initial plot.
TAB_PLOT calculates the number of rows and columns of the table.
If there are just 2 columns, like in TABLE_1.DOC, the first is
taken as X- and the second as Y-coordinates.
If there are 3 columns, the plot will have two Y-axes (left and
right) and two curves are drawn with the 2-nd and 3-rd column as
Y-coordinates.
If there are more than 3 columns, like in TABLE_2.DOC, TAB_PLOT
asks which column should be X, etc.
TAB_PLOT determines the range of X- and Y-values for scaling.
The menu.
Most points are evident. Additional information:
Save: on disk in DEGAS format.
Xleft: left boundary of X-axis. Must be less than Xright.
If Xleft is not positive, Xlog is inactive.
If Xlog is active, Xleft must be positive.
Xdiv: number of divisions along linear X scale.
Xlog: logscale on X-axis, can be used only if all X values and
Xleft are positive.
Text movable: at arrow point until mouse button is clicked.
XYY-columns: new plot of any 2 columns as functions of any column.
Nr of rows: new plot using shorter columns.
Nr of rows must be at least 2 and at most the initial number.
Next: select another table.
Number table.
Constraints on the form are minimal, but note the following.
TAB_PLOT scans the file initially for a table header "===".
If it finds ===, everything preceding === is ignored like in
TABLE_2.DOC. If it does not find ===, the first number in the file
is taken as the first number of the table.
A row of numbers must be terminated by ASCII 13 because TAB_PLOT
uses this to count the rows.
TAB_PLOT assumes that numbers are separated by at least one space.
This applies also to the last number of a row and the first number
of the next row. More spaces and other characters are allowed
between numbers, but a dot, digit or minus sign is assumed to
start a number.
The last row of the table may be followed by text, but extra
digits spoil the initial plot as TAB_PLOT mis-calculates the
number of rows. This can be repaired, however, by giving the
correct Nr of rows later on.
TAB_PLOT.LST
The GFA BASIC source code is added in case you want to adapt the
program to your needs.